import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:hm_show_flutter/config/router_handlers.dart';

class Routers{
  static String root = "/";
  static String home = "home";
  static String login = "/login";
  static String register = "/register";

  static String categoryGoodsList = "/categoryGoodsList";
  static String collectionList = "/collectionList";

  static String goodsDetail = "/goodsDetail";
  static String goodsList = "/goodsList";

  static String activityDetail = "/activityDetail";
  static String activityList = "/activityList";

  static String companyDetail = "/companyDetail";
  static String companyList = "/companyList";

  static String webView = "/webView";
  static String searchGoods = "/searchGoods";

  static String feedback = "/feedback";
  static String setting = "/setting";
  static String aboutUs = "/aboutUs";
  static String editName = "/editName";
  static String member = "/member";

  static String courseList = "/courseList";
  static String courseDetail = "/courseDetail";

  static String appointmentList = "/appointmentList";

  static void configureRoutes(Router router) {
    router.notFoundHandler = Handler(handlerFunc:
        (BuildContext context, Map<String, List<String>> parameters) {
      print("handler not find");
    });

    router.define(root, handler: splashHandler);
    router.define(login, handler: loginHandler);
    router.define(register, handler: registerHandler);
    router.define(home, handler: homeHandler);
    router.define(categoryGoodsList, handler: categoryGoodsListHandler);
    router.define(goodsDetail, handler: goodsDetailsHandler);
    router.define(goodsList, handler: goodsListHandler);
    router.define(activityList, handler: activityListHandler);
    router.define(activityDetail, handler: activityDetailsHandler);
    router.define(collectionList, handler: collectionListHandler);
    router.define(setting, handler: settingHandler);
    router.define(companyDetail, handler: companyDetailsHandler);
    router.define(companyList, handler: companyListHandler);
//    router.define(feedback, handler: feedbackHandler);
//    router.define(aboutUs, handler: aboutHandler);
    router.define(searchGoods, handler: searchGoodsHandler);
    router.define(webView, handler: webViewHandler);
    router.define(editName, handler: editNameHandler);
    router.define(member, handler: memberHandler);
    router.define(courseList, handler: courseListHandler);
    router.define(aboutUs, handler: aboutUsHandler);
    router.define(appointmentList, handler: appointmentListHandler);
  }

}